1af06fdbcc806879d959e4f58bea96d4583959c1,flow/src/main/java/flow/KeyDispatcher.java,KeyDispatcher,dispatch,#Flow.Traversal#Flow.TraversalCallback#,63
Before Change
}
@Override public void dispatch(Flow.Traversal traversal, Flow.TraversalCallback callback) {
State inState = traversal.destination.topSaveState();
Object inKey = inState.getKey();
State outState = traversal.origin == null ? null : traversal.origin.topSaveState();
Object outKey = outState == null ? null : outState.getKey();
// TODO(#126): this short-circuit may belong in Flow, since every Dispatcher we have implements it.
After Change
}
@Override public void dispatch(Flow.Traversal traversal, Flow.TraversalCallback callback) {
State inState = traversal.getState(traversal.destination.top());
Object inKey = inState.getKey();
State outState = traversal.origin == null ? null : traversal.getState(traversal.origin.top());
Object outKey = outState == null ? null : outState.getKey();
// TODO(#126): short-circuit may belong in Flow, since every Dispatcher we have implements it.